package com.markyao.dao.mapper;

import com.markyao.dao.pojo.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AddressMapper {
    Integer findCountByUid(Integer uid);

    void addAddress(Address address);

    List<Address> findByUid(Integer uid);

    Address findByAid(@Param("uid") Integer uid, @Param("aid") Integer aid);

    void setNoDefault(Integer uid);

    void setDefault(Integer aid);

    void deleteByAid(Integer aid);


}
